package com.ambimmort.shj.action.policysyn;

/**
 * Created by Administrator on 2015/7/30.
 */

import com.ambimmort.shj.service.policysyn.PolicysynService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;

@Controller("/action/policy/synchronization/getReportedVersion.do")
public class GetReportedVersion {
    @Autowired
    private PolicysynService policysynService;

    /**
     *
     * @param request
     * @param dpiId
     * @return
     */
    @RequestMapping("/action/policy/synchronization/getReportedVersion.do")
    @ResponseBody
    public String action_PolicysynGetReportedVersion( HttpServletRequest request,@RequestParam("dpiId") String dpiId) throws SQLException {
        System.out.println("action_PolicybankCreate-messageType:"+dpiId);
        return  policysynService.getReportedVersionDomain(dpiId);

    }
}
